package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.LabMajorSixMapper;
import com.erms.lab.domain.LabMajorSix;
import com.erms.lab.service.ILabMajorSixService;
import com.erms.common.core.text.Convert;

/**
 * 专业机房六Service业务层处理
 * 
 * @author smile
 * @date 2020-05-04
 */
@Service
public class LabMajorSixServiceImpl implements ILabMajorSixService 
{
    @Autowired
    private LabMajorSixMapper labMajorSixMapper;

    /**
     * 查询专业机房六
     * 
     * @param equipId 专业机房六ID
     * @return 专业机房六
     */
    @Override
    public LabMajorSix selectLabMajorSixById(Long equipId)
    {
        return labMajorSixMapper.selectLabMajorSixById(equipId);
    }

    /**
     * 查询专业机房六列表
     * 
     * @param labMajorSix 专业机房六
     * @return 专业机房六
     */
    @Override
    public List<LabMajorSix> selectLabMajorSixList(LabMajorSix labMajorSix)
    {
        return labMajorSixMapper.selectLabMajorSixList(labMajorSix);
    }

    /**
     * 新增专业机房六
     * 
     * @param labMajorSix 专业机房六
     * @return 结果
     */
    @Override
    public int insertLabMajorSix(LabMajorSix labMajorSix)
    {
        return labMajorSixMapper.insertLabMajorSix(labMajorSix);
    }

    /**
     * 修改专业机房六
     * 
     * @param labMajorSix 专业机房六
     * @return 结果
     */
    @Override
    public int updateLabMajorSix(LabMajorSix labMajorSix)
    {
        return labMajorSixMapper.updateLabMajorSix(labMajorSix);
    }

    /**
     * 删除专业机房六对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorSixByIds(String ids)
    {
        return labMajorSixMapper.deleteLabMajorSixByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除专业机房六信息
     * 
     * @param equipId 专业机房六ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorSixById(Long equipId)
    {
        return labMajorSixMapper.deleteLabMajorSixById(equipId);
    }
}
